import { createRouter, createWebHistory } from 'vue-router'

import Home from '@/pages/home/index.vue'

export const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      name: '首页',
      showInput: true
    }
  },
  {
    path: '/console',
    name: 'Console',
    component: () => import('@/pages/console/index.vue'),
    meta: {
      name: '控制台',
      // showHeader: false, // 默认显示
      // showInput: false,  // 默认隐藏
      // showFooter: false  // 默认显示
    }
  },
  {
    path: '/shis',
    name: 'shis',
    component: () => import('@/pages/console/index.vue'),
    meta: {
      name: '去哪儿',
      showInput: false
    }
  },
  {
    path: '/cf',
    name: 'cf',
    component: () => import('@/pages/console/index.vue'),
    meta: {
      name: '春风',
      showInput: false
    }
  },
  {
    path: '/qj',
    name: 'qj',
    component: () => import('@/pages/console/index.vue'),
    meta: {
      name: '钱江',
      showInput: false
    }
  },
  {
    path: '/rz',
    name: 'rz',
    component: () => import('@/pages/console/index.vue'),
    meta: {
      name: '忍者',
      showInput: false
    }
  },
  {
    path: '/edit',
    name: 'Edit',
    component: () => import('@/pages/edit/index.vue'),
    meta: {
      name: '编辑',
      showInput: false,
      showHeader: false,
      showFooter: false
    }
  },
]

export const router = createRouter({
  history: createWebHistory(),
  routes
})